/***************************************************************************
 *   Copyright (C) 2008 by Eduardo Gurgel Pinho                            *
 *   edgurgel@gmail.com                                                    *
 *                                                                         *
 *   This program is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU General Public License as published by  *
 *   the Free Software Foundation; either version 3 of the License, or     *
 *   (at your option) any later version.                                   *
 *                                                                         *
 *   This program is distributed in the hope that it will be useful,       *
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
 *   GNU General Public License for more details.                          *
 *                                                                         *
 *   You should have received a copy of the GNU General Public License     *
 *   along with this program; if not, write to the                         *
 *   Free Software Foundation, Inc.,                                       *
 *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
***************************************************************************/

#ifndef __CAMERA_PANEL_H__
#define __CAMERA_PANEL_H__

#include <QWidget>
#include "common/camera.h"
#include "common/grid.h"
#include "common/observer.h"

class QPushButton;
class QLabel;
class QSpinBox;
class QVBoxLayout;
class QHBoxLayout;

namespace Ui {
class Vector_Widget;
	
class Camera_Panel : public QWidget {

Q_OBJECT

public:
	Camera_Panel(QWidget*,Sirat::Common::Camera*);
	~Camera_Panel(void);
	
	Sirat::Common::Camera* get_camera(void) const;
	void set_camera(Sirat::Common::Camera*);
	
private slots:
	void update_camera(void);
	void update_height(int);
	void update_width(int);
signals:
	
private:
	void create_connections(void);
	
	Sirat::Common::Camera* camera;
	Sirat::Common::Grid* grid;
	Sirat::Common::Observer* observer;
	QSpinBox* height_spinbox;
	QSpinBox* width_spinbox;
	Vector_Widget* observer_position;
	Vector_Widget* observer_up;
	Vector_Widget* grid_position;
};

}

#endif
